import com.alibaba.fastjson2.annotation.JSONField;

import java.util.List;

public class UserResponse {
    @JSONField(name = "code")
    private int code;

    @JSONField(name = "msg")
    private String msg;

    @JSONField(name = "data")
    private List<UserInfo> data;

    @JSONField(name = "order_sign")
    private boolean orderSign;

    // 无参构造
    public UserResponse() {
    }

    // getter和setter
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<UserInfo> getData() {
        return data;
    }

    public void setData(List<UserInfo> data) {
        this.data = data;
    }

    public boolean isOrderSign() {
        return orderSign;
    }

    public void setOrderSign(boolean orderSign) {
        this.orderSign = orderSign;
    }

    // 嵌套的用户信息类
    public static class UserInfo {
        @JSONField(name = "id")
        private int id;

        @JSONField(name = "uid")
        private int uid;

        @JSONField(name = "realname")
        private String realname;

        @JSONField(name = "real_card_id")
        private String realCardId;

        @JSONField(name = "phone")
        private String phone;

        @JSONField(name = "is_self")
        private boolean isSelf;

        @JSONField(name = "real_card_id2")
        private String realCardId2;

        @JSONField(name = "phone2")
        private String phone2;

        @JSONField(name = "timestamp")
        private long timestamp;

        @JSONField(name = "signature")
        private String signature;
        @JSONField(name = "disabled")
        private boolean disabled;
        @JSONField(name = "disabled2")
        private boolean disabled2;
        @JSONField(name = "showText")
        private String showText;

        public boolean isDisabled() {
            return disabled;
        }

        public void setDisabled(boolean disabled) {
            this.disabled = disabled;
        }

        public boolean isDisabled2() {
            return disabled2;
        }

        public void setDisabled2(boolean disabled2) {
            this.disabled2 = disabled2;
        }

        public String getShowText() {
            return showText;
        }

        public void setShowText(String showText) {
            this.showText = showText;
        }

        // 无参构造
        public UserInfo() {
        }

        // getter和setter
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUid() {
            return uid;
        }

        public void setUid(int uid) {
            this.uid = uid;
        }

        public String getRealname() {
            return realname;
        }

        public void setRealname(String realname) {
            this.realname = realname;
        }

        public String getRealCardId() {
            return realCardId;
        }

        public void setRealCardId(String realCardId) {
            this.realCardId = realCardId;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public boolean isSelf() {
            return isSelf;
        }

        public void setSelf(boolean self) {
            isSelf = self;
        }

        public String getRealCardId2() {
            return realCardId2;
        }

        public void setRealCardId2(String realCardId2) {
            this.realCardId2 = realCardId2;
        }

        public String getPhone2() {
            return phone2;
        }

        public void setPhone2(String phone2) {
            this.phone2 = phone2;
        }

        public long getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(long timestamp) {
            this.timestamp = timestamp;
        }

        public String getSignature() {
            return signature;
        }

        public void setSignature(String signature) {
            this.signature = signature;
        }
    }
}